package com.wm.ucenterService.service;

import com.wm.ucenterService.entity.UcenterMember;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wm.ucenterService.entity.vo.RegisterVo;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author sshdg
 * @since 2020-10-09
 */
public interface UcenterMemberService extends IService<UcenterMember> {

    String login(UcenterMember ucenterMember);

    void register(RegisterVo registerVo);

    /**
     * 根据openid 获取用户信息
     * @param openid
     * @return 会员
     */
    UcenterMember getMemberByOpenid(String openid);


    /**
     * 查询指定day的注册人数
     * @param day
     * @return 注册人数
     */
    Integer countRegisterDay(String day);
}
